package cn.itsub.proxy.server.app.entity;


import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 隧道
 * </p>
 *
 * @author Java夏老师
 * @since 2021-09-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Tunnel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /* 隧道名称 */
    private String name;

    /* 外网端口 */
    private Integer wanPort;
    /* 内网地址 */
    private String lanHost;
    /* 内网端口 */
    private Integer lanPort;
    /* 状态：1启用，0关闭 */
    private Integer state;
    /* 备注信息 */
    private String remark;
    //客户端ID
    private String clientKey;

    @TableField(exist = false)
    private Long flowOut;   //流出字节
    @TableField(exist = false)
    private Long flowIn;    //流入字节
    @TableField(exist = false)
    private Long msgOut;    //流出消息数
    @TableField(exist = false)
    private Long msgIn;    //流入消息数

}
